package com.mad.base.manager;

import com.mad.base.gui.MainWnd;
import com.mad.base.objects.GameObject;

public class GuiManager extends SubManager {

	private MainWnd mainWnd ; 
	
    public MainWnd getMainWnd()
    {
        return mainWnd;
    }
    public GuiManager(Manager parentManager) {
		super(parentManager);
	}

	@Override
	public void init(Object o) {
		this.mainWnd = new MainWnd(this, GameManager.GRID_WIDTH, GameManager.GRID_HEIGHT, 
		                           ((PlayerManager)this.getParentManager()).getWndType()); 
	}

	@Override
	public void exit(Object o) {

	}

	@Override
	public void update(Object o) {
	    this.mainWnd.update( o ); 
	}

}
